﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using BBServer20210601.Pages;


namespace LayuiDemo.demo.ViewModels.FooVMs
{
    public partial class FooBatchVM : BaseBatchVM<Foo, Foo_BatchEdit>
    {
        public FooBatchVM()
        {
            ListVM = new FooListVM();
            LinkedVM = new Foo_BatchEdit();
        }

    }

	/// <summary>
    /// Class to define batch edit fields
    /// </summary>
    public class Foo_BatchEdit : BaseVM
    {
        [Display(Name = "年龄")]
        public Int32? Age { get; set; }
        [Display(Name = "部门")]
        public DepartTypeEnum? DepartType { get; set; }
        [Display(Name = "可用?")]
        public Boolean? IsValid { get; set; }
        [Display(Name = "姓名")]
        public String Name { get; set; }
        [Display(Name = "备注")]
        public String Remark { get; set; }

        protected override void InitVM()
        {
        }

    }

}
